package cn.jhc.android;

import com.example.android.R;

import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_main);
	
	findViewById(R.id.btn_play).setOnClickListener(this);
	findViewById(R.id.btn_scores).setOnClickListener(this);
	findViewById(R.id.btn_about).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_play:
			Intent intentplay= new Intent(MainActivity.this,GameActivity.class);
			startActivity(intentplay);
			break;
      case R.id.btn_scores:
    	  Intent intentscore = new Intent(MainActivity.this,ScoreActivity.class);
    	  startActivity(intentscore);
    	  break;
       case R.id.btn_about:
    	  Intent intentabout = new Intent(MainActivity.this,AboutActivity.class);
    	  startActivity(intentabout);
    	  break;
		
		}
		
	}
  
}
